package com.example.demo.controller;

import lombok.RequiredArgsConstructor;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jiangjinwu
 * @version 1.0
 * @since 2025/10/8 10:56
 */

@Slf4j
@RestController
public class Demo {

  @RequestMapping("/")
  public ResponseEntity index() {
    logger.info("hello world");
    return ResponseEntity.ok("hello world");
  }
}
